package com.common.exception;

public class CommonException extends RuntimeException{
	
	private static final long serialVersionUID = -8703187478446632639L;
	protected String code;//异常码
	
	public CommonException(String message) {
		super(message);
	}
	
	public CommonException(String code, String message) {
		super(message);
		this.code = code;
	}

	public CommonException(String code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}
	
	public CommonException(String message, Throwable cause) {
		super(message, cause);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
}
